<?php

if (!defined('E_DEPRECATED')) {
    define('E_DEPRECATED',8192);
}
error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE);

$base_uri = DIRECTORY_SEPARATOR=='/' ? dirname($_SERVER["SCRIPT_NAME"]) : str_replace('\\', '/', dirname($_SERVER["SCRIPT_NAME"]));
define("BASE_URI", $base_uri =='/' ? '' : $base_uri);
unset($base_uri);
define('APP_NAME', 'anjuke-jx');
define('APP_PATH', realpath(dirname(__FILE__)).'/');
define('SYS_PATH', APP_PATH."../../system2/");
define('CODE_PATH', realpath(dirname(APP_PATH)).'/');
ini_set('display_errors', '1');
$G_LOAD_PATH = array(
    APP_PATH,
    APP_PATH."../app-oa-core/",
    APP_PATH."../app-oa-common/",
    SYS_PATH
);
$G_CONF_PATH = array(
    APP_PATH."config/",
    APP_PATH."../app-oa-core/config/",
    APP_PATH."../config/".APP_NAME."/",
);
$G_ROUTER_PATH = array(
    APP_PATH."config/",
    APP_PATH."../app-oa-core/config/",
    APP_PATH."../config/".APP_NAME."/",
);


require_once(SYS_PATH."functions.php");
apf_require_class("APF");
APF::get_instance()->set_request_class('NHRequest');
APF::get_instance()->run();
